.class public Lcom/estrongs/android/pop/app/analysis/adapters/n;
.super Landroid/widget/BaseAdapter;
.source "PopupItemAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/analysis/adapters/n$a;,
        Lcom/estrongs/android/pop/app/analysis/adapters/n$b;
    }
.end annotation


# instance fields
.field a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/analysis/adapters/n$a;",
            ">;"
        }
    .end annotation
.end field

.field b:Landroid/content/Context;

.field private c:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a:Ljava/util/List;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->b:Landroid/content/Context;

    .line 4
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a(Landroid/content/Context;)Ljava/util/List;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a:Ljava/util/List;

    return-void
.end method

.method private a(Landroid/content/Context;)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/analysis/adapters/n$a;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f1100cf

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "pic://"

    const v4, 0x7f0806ff

    invoke-direct {v1, p0, v3, v4, v2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 3
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f1100c6

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "music://"

    const v4, 0x7f080704

    invoke-direct {v1, p0, v3, v4, v2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 4
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f1100dd

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "video://"

    const v4, 0x7f08070b

    invoke-direct {v1, p0, v3, v4, v2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 5
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f1100b7

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "book://"

    const v4, 0x7f0806fa

    invoke-direct {v1, p0, v3, v4, v2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 6
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f1100b3

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "app://"

    const v4, 0x7f0806f1

    invoke-direct {v1, p0, v3, v4, v2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 7
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v1

    .line 8
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const/4 v3, 0x0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_4

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 9
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->w2(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_3

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->t2(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    goto :goto_2

    .line 10
    :cond_0
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 11
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 12
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v5

    .line 13
    invoke-static {v5, v4}, Lcom/estrongs/android/util/h0;->i(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 14
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    const v6, 0x7f110a3d

    invoke-virtual {v5, v6}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v5

    goto :goto_1

    .line 15
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    const v6, 0x7f110a3c

    invoke-virtual {v5, v6}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 16
    :cond_2
    :goto_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, " "

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const v5, 0x7f1100bb

    invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 17
    new-instance v6, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v7, 0x7f080707

    invoke-direct {v6, p0, v4, v7, v5}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 18
    :cond_4
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    sub-int/2addr v1, v3

    const/4 v2, 0x1

    if-le v1, v2, :cond_5

    .line 19
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    const v2, 0x7f08043e

    const v3, 0x7f1100b0

    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    const-string v3, "/"

    invoke-direct {v1, p0, v3, v2, p1}, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;-><init>(Lcom/estrongs/android/pop/app/analysis/adapters/n;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_5
    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 0

    .line 20
    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->c:Ljava/lang/String;

    return-void
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    if-nez p2, :cond_0

    .line 1
    new-instance p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;

    invoke-direct {p2}, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;-><init>()V

    .line 2
    iget-object p3, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->b:Landroid/content/Context;

    invoke-static {p3}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p3

    const v0, 0x7f0c0053

    const/4 v1, 0x0

    invoke-virtual {p3, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p3

    const v0, 0x7f09057e

    .line 3
    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->a:Landroid/widget/ImageView;

    const v0, 0x7f090594

    .line 4
    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->b:Landroid/widget/TextView;

    .line 5
    invoke-virtual {p3, p2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_0

    .line 6
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;

    move-object v4, p3

    move-object p3, p2

    move-object p2, v4

    .line 7
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;

    .line 8
    iget-object v0, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->a:Landroid/widget/ImageView;

    iget v1, p1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;->b:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 9
    iget-object v0, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->b:Landroid/widget/TextView;

    iget-object v1, p1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const v1, 0x7f0600e3

    if-nez v0, :cond_5

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->w1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->R1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_1

    :cond_1
    const/4 v0, 0x0

    goto :goto_2

    :cond_2
    :goto_1
    const/4 v0, 0x1

    .line 12
    :goto_2
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/adapters/n;->c:Ljava/lang/String;

    iget-object v3, p1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4

    if-eqz v0, :cond_3

    iget-object p1, p1, Lcom/estrongs/android/pop/app/analysis/adapters/n$a;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    goto :goto_3

    .line 13
    :cond_3
    iget-object p1, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->b:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    invoke-virtual {p2, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_4

    .line 14
    :cond_4
    :goto_3
    iget-object p1, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->b:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const v0, 0x7f060102

    invoke-virtual {p2, v0}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_4

    .line 15
    :cond_5
    iget-object p1, p2, Lcom/estrongs/android/pop/app/analysis/adapters/n$b;->b:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    invoke-virtual {p2, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_4
    return-object p3
.end method
